package proxy.dynamicpro;

public class Client {
    public static void main(String[] args) {
        ITeacherDao target = new TeacherDao();
        ITeacherDao proxy = (ITeacherDao) new TeacherProxy(target).getProxyInstance();
        System.out.println(proxy.getClass());
        proxy.teach(3);
    }
}
